package com.yh.daoimpl;

import com.yh.dao.StudentDao;
import com.yh.javabean.Student;
import com.yh.util.MyJdbcUtil;

/**
 * @Auther: Liang
 * @Date: 2024/5/10 - 05 - 10 - 17:39
 * @Description: com.yh.daoimpl
 * @version: 1.0
 */
public class StudentDaoImpl implements StudentDao {
    @Override
    public int StudentDao(Student student) {
        String sql= "insert into student (username,password,name) values(?,?,?)";

        return MyJdbcUtil.dml(sql,student.getUsername(),student.getPassword(),student.getName());
    }
}
